﻿using Common.CustomAtteibutes;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Parylene_CVD.Model.DModels
{
    // 设备镀膜参数记录表实体类
    [Table("DeviceCoatingParameters")]
    [PrimaryKey("RecordId", autoIncrement = true)]
    public class DeviceCoatingParameters
    {
        public int RecordId { get; set; }
        public int DeviceID { get; set; }
        public double? LidTempSetPoint { get; set; }
        public double? TubeTempSetPoint { get; set; }
        public double? EvapTempSetPoint { get; set; }
        public double? CrackTempSetPoint { get; set; }
        public double? AuxHeatTempSetPoint { get; set; }
        public double? FreezeTempSetPoint { get; set; }
        public double? WallTempSetPoint { get; set; }
        public double? CoupleTempSetPoint { get; set; }
        public double? ChamberPressureSetPoint { get; set; }
        public double? VacuumPressureSetPoint { get; set; }
        public double? BackupTempSetPoint1 { get; set; }
        public double? BackupTempSetPoint2 { get; set; }

        public DeviceCoatingParameters() { }

        public DeviceCoatingParameters(int recordId, int deviceID, double? lidTempSetPoint, double? tubeTempSetPoint, double? evapTempSetPoint, double? crackTempSetPoint, double? auxHeatTempSetPoint, double? freezeTempSetPoint, double? wallTempSetPoint, double? coupleTempSetPoint, double? chamberPressureSetPoint, double? vacuumPressureSetPoint, double? backupTempSetPoint1, double? backupTempSetPoint2)
        {
            RecordId = recordId;
            DeviceID = deviceID;
            LidTempSetPoint = lidTempSetPoint;
            TubeTempSetPoint = tubeTempSetPoint;
            EvapTempSetPoint = evapTempSetPoint;
            CrackTempSetPoint = crackTempSetPoint;
            AuxHeatTempSetPoint = auxHeatTempSetPoint;
            FreezeTempSetPoint = freezeTempSetPoint;
            WallTempSetPoint = wallTempSetPoint;
            CoupleTempSetPoint = coupleTempSetPoint;
            ChamberPressureSetPoint = chamberPressureSetPoint;
            VacuumPressureSetPoint = vacuumPressureSetPoint;
            BackupTempSetPoint1 = backupTempSetPoint1;
            BackupTempSetPoint2 = backupTempSetPoint2;
        }

        public DeviceCoatingParameters(int deviceID, double? lidTempSetPoint, double? tubeTempSetPoint, double? evapTempSetPoint, double? crackTempSetPoint, double? auxHeatTempSetPoint, double? freezeTempSetPoint, double? wallTempSetPoint, double? coupleTempSetPoint, double? chamberPressureSetPoint, double? vacuumPressureSetPoint, double? backupTempSetPoint1, double? backupTempSetPoint2)
        {
            DeviceID = deviceID;
            LidTempSetPoint = lidTempSetPoint;
            TubeTempSetPoint = tubeTempSetPoint;
            EvapTempSetPoint = evapTempSetPoint;
            CrackTempSetPoint = crackTempSetPoint;
            AuxHeatTempSetPoint = auxHeatTempSetPoint;
            FreezeTempSetPoint = freezeTempSetPoint;
            WallTempSetPoint = wallTempSetPoint;
            CoupleTempSetPoint = coupleTempSetPoint;
            ChamberPressureSetPoint = chamberPressureSetPoint;
            VacuumPressureSetPoint = vacuumPressureSetPoint;
            BackupTempSetPoint1 = backupTempSetPoint1;
            BackupTempSetPoint2 = backupTempSetPoint2;
        }
    }
}
